package info.zhoutian.blog.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/8/23.
 */
//@RestController
@Controller
public class HelloController {

//    @Value("${cupSize}")
//    private String cupSize;
//
//    @Value("${age}")
//    private Integer age;
//
//    @Value("${content}")
//    private String content;

//    @Autowired
//    private GirlProperties girlProperties;
//
//    @RequestMapping("/")
//    public String home(){
//        return "Hello World! + " + girlProperties;
//    }

//    @RequestMapping("/")
//    public String home(){
//        return "index";
//    }

    @RequestMapping("/")
    public String home(){
        return "index";
    }

}
